package com.kun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author SunKun
 * @since 2021-06-14
 */
@TableName("t_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户IP地址
     */
    @TableField("userIp")
    private String userip;

    /**
     * 所属博客id
     */
    @TableField("blogId")
    private Integer blogid;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    @TableField("commentDate")
    private LocalDateTime commentdate;

    /**
     * 审核状态1：待审核 2：已审核
     */
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserip() {
        return userip;
    }

    public void setUserip(String userip) {
        this.userip = userip;
    }

    public Integer getBlogid() {
        return blogid;
    }

    public void setBlogid(Integer blogid) {
        this.blogid = blogid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCommentdate() {
        return commentdate;
    }

    public void setCommentdate(LocalDateTime commentdate) {
        this.commentdate = commentdate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "id=" + id +
        ", userip=" + userip +
        ", blogid=" + blogid +
        ", content=" + content +
        ", commentdate=" + commentdate +
        ", state=" + state +
        "}";
    }
}
